DANIEL-CRO, I think the program should scan processes and make sure that it is in this folder, does not have running processes. And if the program is running, the program does not start and displays a message in a window with the message "the program is running, click OK, to exit."
p.s. damn Google